package com.app.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;


/**
 * <p>
 * 奖品
 * </p>
 *
 * @author yoominic
 * @since 2023-12-16
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("lm_prize")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class Prize implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /**
     * 游戏id
     */
    private Integer gameId;

    /**
     * 奖品
     */

    private String prize;

    @TableField(exist = false)
    private String pid;
    @TableField(exist = false)
    private Integer prizeType;
    @TableField(exist = false)
    private String prizeName;
    @TableField(exist = false)
    private Integer prizeValue;
    @TableField(exist = false)
    private Integer weight;
    @TableField(exist = false)
    private Integer currentNum;
    @TableField(exist = false)
    private Integer value;
    @TableField(exist = false)
    private String prizeImage;

    @TableField(exist = false)
    private List<Prize> prizeList;
    @TableField(exist = false)
    private String prizeTypeText;
    private LocalDateTime createTime;

    private LocalDateTime updateTime;


    @TableField(exist = false)
    private String address;
    @TableField(exist = false)
    private Integer bussesType;
    @TableField(exist = false)
    private Integer businessId;

    @TableField(exist = false)
    private Integer effectiveDuration;
}
